package com.ming.user;

import com.google.inject.AbstractModule;
import com.google.inject.servlet.ServletModule;
import com.ming.core.web.filter.EncodeFilter;
import com.ming.core.web.filter.TransactionFilter;
import com.ming.user.action.UserServlet;
import com.ming.user.test.CSV;
public class UserModule extends AbstractModule {
	
	@Override
	protected void configure() {
//		super.bind(clazz)
		
//		super.bind(String.class).annotatedWith(CSV.class).to(implementation);
		install(new ServletModule(){
			@Override
			protected void configureServlets() {
				serve("/user").with(UserServlet.class);
				filter("/*").through(TransactionFilter.class);
//				filter("/*").through(EncodeFilter.class);
				
			}
		});
		
	}
	
}
